package com.honglang.common.tools;

public class PasswordFactory {
	
	public static String createPassword(int length){
		
		StringBuffer sb = new StringBuffer();
		
		for(int i=1;i<=length;i++){
		   sb.append(String.valueOf((int)(Math.random()*10)));	
		  
		}
		
		return sb.toString();
	}
}
